
<? $form = $content['comment_form'] ?>

<? hide($form['comment_body']['und'][0]['format'])?>
<? hide($form['comment_body']['#type'])?>
<? hide($form['comment_body']['#attributes'])?>

<? $form['comment_body']['und'][0]['value']['#title_display'] = 'none' ?>
<? $form['comment_body']['und'][0]['value']['#rows'] = 2 ?>
<? $form['actions']['submit']['#value'] = 'Опубликовать' ?>
<? $form['actions']['submit']['#class'] = 'blueBtn' ?>

<? $form['author']['_author']['#title_display'] = 'none' ?>
<? $form['author']['name']['#title_display'] = 'none' ?>

<? $is_anonymous = $form['is_anonymous']['#value']; ?>

<?
    if ($is_anonymous) {
        $form['author']['name']['#type'] = 'hidden';
        $form['author']['name']['#theme'] = 'hidden';
        $form['author']['name']['#value'] = 'Anonymous';
    ?>
        <li>
            <div class="txt">
                <div class="date">
                    Вы не зарегистрированы на сайте.<br>
                    Рекомендуем Вам <a href='/user/register' style="color: #369; text-decoration: underline;">зарегистрироваться</a> и публиковать комментарии без ограничений под Вашим именем
                </div>

                    <?= render($content['comment_form']); ?>

            </div>
        </li>
        <?

    } else { ?>
        <li>


            <?= $picture; ?>
            <div class="txt <?= strlen($picture) ? 'img' : '' ?>">
                <div class="date"><?= render($content['comment_form']['author']) ?></div>
                <div class="functions">
                    <?= render($content['comment_form']); ?>
                </div>
            </div>
        </li>
    <? } ?>

